//
//  SEAddressAPI.swift
//  SmartEyeForPatient
//
//  Created by qdsg on 2021/4/20.
//

import Moya

enum SEAddressAPI {
    case address
}

extension SEAddressAPI: TargetType {
    var baseURL: URL {
        return URL(string: SEApiManager.baseUrl)!
    }

    var path: String {
        return "/ng/newfuture-org/region/tree"
    }

    var method: Moya.Method {
        .get
    }

    var sampleData: Data {
        return "".data(using: .utf8)!
    }

    var task: Task {
        return .requestPlain
    }

    var headers: [String : String]? {
        return SEApiManager.headers
    }
}
